package server;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

public class Server {
	
	JFrame frame;
	JTabbedPane pane;
	PasswordPanel passwordPanel;
	StatusPanel statusPanel;
	PassStatusPanel passStatusPanel;
	StatPanel statPanel;
	PaymentPanel paymentPanel;
	
	public Server(){
		frame = new JFrame("Server Application");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		passwordPanel = new PasswordPanel();
		statusPanel = new StatusPanel();
		passStatusPanel = new PassStatusPanel();
		statPanel = new StatPanel();
		paymentPanel = new PaymentPanel();
		
		pane = new JTabbedPane();
		pane.addTab("Workstation Status", statusPanel);
		pane.addTab("Generate Password", passwordPanel);
		pane.addTab("User Status", passStatusPanel);
		pane.addTab("Statistics", statPanel);
		pane.addTab("Payment", paymentPanel);
		
		frame.add(pane);
		
		frame.setVisible(true);
		frame.pack();
		
	}
	
	public static void main(String [] args){
		new Server();
	}

}
